<html>
<html>
<head><title>S3 Wireless Internet Service</title>

<script type="text/javascript"> 
function get_param(name)
{
    if (location.href.indexOf("?") >= 0) { 
        var query=location.href.split("?")[1];
        var params=query.split("&");
        for (var i = 0; i < params.length; i ++) {
            value_pair=params[i].split("=");
            if (value_pair[0] == name)
                return unescape(value_pair[1]);
        }
    }
    return "";
}
</script>

</head>
<body>
<script type="text/javascript"> 
document.write('<form method=POST action="http://' + get_param("sip") + ':9997/login">');
</script>
Username:<input type="text" name="username">
Password:<input type="password" name="password" >
<!-- forwarding the original url -->
<script type="text/javascript"> 
document.write('<input type="hidden" name="url" value="' + get_param("url") + '">');
</script>
<input type="submit" value="Login">
</form>
<p>The address of the associated access point is
<script type="text/javascript"> 
document.write(get_param("mac"));
</script>
</body>
</html>
